import request from '@/utils/request'

const recruitmentApi = {
  list: '/recruitment/list',
  creat: '/recruitment/list',
  edit: '/recruitment/list',
  Delete: '/recruitment/list',
}

/**
 * recruitmentList func
 * parameter: {
 *     username: '',
 *     password: '',
 *     captcha: '12345'
 * }
 * @param parameter
 * @returns {*}
 */
// 获取recruitment列表
export function recruitmentList (parameter) {
  return request({
    url: recruitmentApi.list,
    method: 'get',
		headers: {
		  'Content-Type': 'application/json;charset=UTF-8'
		},
    params: parameter,
  })
}
// 创建recruitment
export function recruitmentCreat (parameter) {
  return request({
    url: recruitmentApi.creat,
    method: 'post',
		headers: {
		  'Content-Type': 'application/json;charset=UTF-8'
		},
    params: parameter,
  })
}
// 编辑recruitment
export function recruitmentEdit (parameter) {
  return request({
    url: recruitmentApi.edit,
    method: 'post',
		headers: {
		  'Content-Type': 'application/json;charset=UTF-8'
		},
    params: parameter,
  })
}
// 删除recruitment
export function recruitmentDelete (parameter) {
  return request({
    url: recruitmentApi.Delete,
    method: 'post',
		headers: {
		  'Content-Type': 'application/json;charset=UTF-8'
		},
    params: parameter,
  })
}

